function regular(userVerification) {
    let reg = /^[a-zA-Z][a-zA-Z0-9_]{3,15}$/
    let patrn = /\w{6,15}/
    if (!reg.test(userVerification.realName) || !userVerification.realName) {
        return "用户名需要英文开头,在4-15个字符之间，切不可有特殊字符"
    }
    if (!reg.test(userVerification.login)) {
        return "账户需要英文开头,在4-15个字符之间 ，切不可有特殊字符"
    }
    if (!patrn.test(userVerification.password)) {
        return "密码请在6-15位之间"
    }
}
export default { regular }